import request from "@/utils/request.js";

// 列表查，参数User实体+页码位置和页码大小
export function queryAllSatisfiedUsers(query){
    return request({
        url: '/system-manager/account-manage/query',
        method: 'get',
        params: query,
        isToken: true
    })
}

// 列表查，参数String id
export function queryDetailUser(id){
    return request({
        url: '/system-manager/account-manage/'+id,
        method: 'get',
        isToken: true
    })
}

// 增加，参数{“user”: User实体, "avatar": MultipartFile}
export function addUser(data){
    return request({
        url: '/system-manager/account-manage/add',
        method: 'post',
        data: data,
        isToken: true
    })
}

// 修改，参数{“user”: User实体, "avatar": MultipartFile}
export function updateUser(data){
    return request({
        url: '/system-manager/account-manage/update',
        method: 'put',
        data: data,
        isToken: true
    })
}

// 删除，参数String[] id
export function deleteUsers(ids){
    return request({
        url: '/system-manager/account-manage/'+ids,
        method: 'delete',
        isToken: true
    })
}

